package com.sunshine.sunnyannotation.service;

import com.sunshine.sunnyannotation.mapper.UserMapper;
import com.sunshine.sunnyannotation.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: sanglei
 * @date: 2018-11-01 9:16
 * @description:
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User query(long id){
        return userMapper.selectByPrimaryKey(id);
    }
}
